package ro.src;

public class Features implements Comparable<Features>{
	public float ratio; // w/h
	public float diagonal; // /
	public float cross; // +
	public float quarter1; // TR/BL
	public float quarter2;// TL/BR
	public float quarter3;// BL/BR
	public int label; //etykieta
	public float distance; //odleglosc
	
	public Features(){
	}
	
	public String toString(){
		return ratio + " "  + diagonal + " " + cross + " " + quarter1 + " " + quarter2  + " " + quarter3 + " " + label;
	}
	
	public int compareTo(Features f) {
		if(this.distance<f.distance)
			return -1;
		else if(this.distance>f.distance)
			return 1;
		else
			return 0;
	}
	
}
